from selenium.webdriver import Chrome
from selenium.webdriver.chrome.service import Service

if __name__ == '__main__':
    path = ('chromedriver.exe')
    service = Service(path)
    web_driver = Chrome(service=service)
    url = 'http://www.lagou.com'
    web_driver.get(url)
    page_source = web_driver.page_source
    print(page_source)
